package model.bo;

import model.bean.UserBean;

public class UserBO {
	
	public UserBean createUser(String name, String passworld) {
		UserBean user = new UserBean();
		user.setNameUser(name);
		user.setPassworld(passworld);
		return user;
	}
	
	public boolean validateUser(UserBean user) {
		if(user.getNameUser().equals("admin") && user.getPassworld().equals("admin")){
			return true;
		}
		return false;
	}

}
